<?
	include("com/cstr.php");
	include("com/website_config.php");
	$pathurltrue=__FILE__;
	$pathurl=basename($pathurltrue,".php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>租车常识-<? echo $title;?></title>
<link rel="shortcut icon" href="/favicon.ico"/>
<link href="css/css.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="http://www.ashlybus.com/js/jquery-1.9.1.min.js"></script>
<script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?429d331d02551c5c42fbfb2982cfcf64"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script>
</head>

<body>
<? include("top.php");?>

<div class="jiange"></div>
<div class="nowplace">当前位置：<span><a href="/">首页</a></span><span>&nbsp;>&nbsp;</span><span>租车常识</span></div>

<div class="jiange"></div>
<div class="innerbox">
 <div class="innerleft2 fl">
    <div class="innerleft_title">租车常识</div>
  </div>
  <div class="innerright fr">
    <div class="innertit2">
      <div class="cl"></div>
    </div>
    <div class="newsleft2">
      <?
	/*
	 * 查询产品
	 */  
	  $id=(int)$_GET["detail_id"];//$_GET方式获得url传递过来的id参数，
	  $typeid=(int)$_GET['BigClassId'];

	  $sql = "select * from ms_product where pro_id=$id";//根据传递过来的参数查询出来相应的记录
	  $result = $db->query($sql);//执行查询
	  $array=mysql_fetch_array($result);
	  $pro_title=$array['pro_title'];
	  $pro_from=$array['pro_from'];
	  $content=$array['pro_content'];
	  $pro_adddate=$array['pro_adddate'];
	  
	  
	  $photoSql = "select * from ms_product_photo where pro_id=$id";//根据传递过来的参数查询出来相应的记录
	  $photoResult = $db->query($photoSql);//执行查询
	  $array=mysql_fetch_array($photoResult);//查询结果存放到$array数组
	  $pro_pic=$array["img_path"];
	  $proimgpath=str_replace("../../","","$pro_pic");//图片路径重置
?>
	   <div class="news_title">
          	<h2><? echo $pro_title;?></h2>
          	<div class="biaoqian"></div>
      </div>
          <div class="article_detail"><? echo $content;?></div>
	  
    </div>
  </div>
  <div class="cl"></div>
</div>
<? include("foot.php");?>
</body>
</html>
